def print_receipt(items):
    width = 30
    # 表头
    print('=' * width)
    print('项目'.ljust(width - 1))
    print('价格'.rjust(width - 1))
    print('-' * width)
    
    # 商品信息
    for item, price in items:
        print(f'{item.ljust(20)} | {price:8.2f}')
    
    # 表尾
    print('=' * width)


items = [
    ('苹果', 6.00),
    ('桔子', 3.20),
    ('香蕉', 2.50),
    ('葡萄', 14.80),
    ('红提', 15.00),
    ('西瓜', 1.50)
]

print_receipt(items)